package com.lycx.businessmanager.model;

import java.util.Date;

import com.lycx.businessmanager.constant.ConstantsProperty;
import com.lycx.businessmanager.manager.DictionaryManager;
import com.lycx.businessmanager.util.MyUtils;

public class Supplier {

	private int id;
	private String name;
	private String cooperateLevel;
	private String contactPerson;
	private String address;
	private String phone;
	private String mobile;
	private String businessScope;
	private String qualification;
	private String note;
	private Date createTime;
	private Date modifyTime;
	private int parentId;
	private String parentIdName;

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCooperateLevel() {
		return cooperateLevel;
	}
	public void setCooperateLevel(String cooperateLevel) {
		this.cooperateLevel = cooperateLevel;
	}
	public String getContactPerson() {
		return contactPerson;
	}
	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getBusinessScope() {
		return businessScope;
	}
	public void setBusinessScope(String businessScope) {
		this.businessScope = businessScope;
	}
	public String getQualification() {
		return qualification;
	}
	public void setQualification(String qualification) {
		this.qualification = qualification;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	public int getParentId() {
		return parentId;
	}
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}
	public String getCooperateLevelName(){
		return DictionaryManager.valueToName(ConstantsProperty.DICT_TYPE_COOPERATE_LEVEL, cooperateLevel);
	}
	public String getCreateTimeStr(){
		return MyUtils.dateToString(this.createTime);
	}
	
	public String getModifyTimeStr(){
		return MyUtils.dateToString(this.modifyTime);
	}

	public String getParentIdName() {
		return parentIdName;
	}
	public void setParentIdName(String parentIdName) {
		this.parentIdName = parentIdName;
	}
    
    
	
}
